package zy4;

/**
 * 培根披萨类
 */
public class Bacon extends Pizza{
    private String burdening;//配料

    public Bacon() {
    }

    public Bacon(String name, int price, int size, String burdening) {
        super(name, price, size);
        this.setBurdening(burdening);
    }

    public String getBurdening() {
        return burdening;
    }

    public void setBurdening(String burdening) {
        this.burdening = burdening;
    }

    @Override
    public void show() {
        System.out.println("名称:"+getName()+"\n价格:"+getPrice()+"元"+"\n大小:"+getSize()+"寸"
                +"\n配料信息:"+getBurdening());
    }
}
